import binascii
import string
import zipfile


def CrackCrc(crc):
    for i in dic:
        for j in dic:
            for p in dic:
                for q in dic:
                    s = i + j + p + q
                    s = s.encode()
                    if crc == (binascii.crc32(s) & 0xffffffff):
                        return s


def CrackZip(txt):
    f = zipfile.ZipFile('cccccrc.zip', 'r')
    GetCrc = f.getinfo(txt)
    crc = GetCrc.CRC
    print(crc)
    s1 = CrackCrc(crc)
    return s1


dic = string.printable

with zipfile.ZipFile('cccccrc.zip', 'r') as zip_file:
    # 使用namelist()方法获取文件列表
    file_list = zip_file.namelist()
    print(file_list)
flag = b""
for i in file_list:
    flag += CrackZip(i)
    print(flag)
